package Demo6;

import java.util.concurrent.Callable;
import java.util.concurrent.CancellationException;

public class Test {
    public static void Makefly(CanFly canFly){
     canFly.fly();

    }

    public static void main(String[] args) {
        CanFly a=new Airplane();
        CanFly b=new Bird();
        Airplane a1=new Airplane();
        Makefly(a);
        Makefly(b);
        a1.land();
        }

    }

